const webpack = require("webpack");

const Server = require("./lib/server/Server");
const config = require("../webpack.config")

// 创建webpack实例 
const compiler = webpack(config);

// 创建Server实例
const server = new Server(compiler);

server.listen(8123, "localhost", () => {
  console.log(`Project is running at http://localhost:8123/`);
})